package org.blojsom.util;

import javax.servlet.http.HttpServletRequest;

public class UrlUtils {

	public static String getUrlPathInfo(HttpServletRequest hreq){
		String uri = hreq.getRequestURI();
		String servletPathInfo = hreq.getContextPath() + hreq.getServletPath();
        String pathInfo = uri.substring(uri.indexOf(servletPathInfo) + servletPathInfo.length());
        return pathInfo;
	}
}
